﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmartSapce.ServiceLocation;
using SmartSpace.OA;
using SmartSpace.Web;

namespace SmartSpace.WebApp.Modules.OA.Pages
{
    public partial class WorkLog_Detail : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            IOAService service = ServiceLocator.Get<IOAService>();
            DateTime date = Convert.ToDateTime(Request.QueryString["date"]);

            _ctlTxtDate.InnerText = string.Format("{0:yyyy年MM月dd日}的日志", date);
            List<WorkLog> logs = service.GetWorkLogs(this.User.Identity.Name, date);
            this._ctlList.DataSource = logs;
            this._ctlList.DataBind();
        }
    }
}